Method for Browsing Application Folder and Electronic Device

ABSTRACT

A method for browsing an application folder includes detecting a first touch operation on a touchscreen of an electronic device, in response to the first touch operation, displaying a first user interface, where the first user interface is a setting screen of a first application program, where the first user interface includes a folder control, detecting a second touch operation on the folder control, and in response to the second touch operation, displaying a second user interface on the touchscreen, where the second user interface is a content details screen of the folder corresponding to the first application program.

TECHNICAL FIELD

This application relates to the field of terminal technologies, and inparticular, to a method for browsing an application folder and anelectronic device.

BACKGROUND

An Android (android) operating system is a Linux-based open-sourceoperating system, and is mainly applied to an electronic device (forexample, a smartphone or a tablet computer). Currently, for anelectronic device with the Android operating system, a user may installvarious applications on the electronic device, for example, WeChat, abrowser, and a camera application. When using an application, the usermay save a created, transferred, or downloaded file as required. Forexample, the file may be audio, a video, a document, a picture, or thelike. However, when a large quantity of applications are installed onthe electronic device, because folders of the applications are arrangedin disorder, and names of the folders are irregular, it is difficult tofind a file to be viewed from a plurality of folders when a folder inwhich the file is stored is unknown. This is greatly inconvenient forthe user.

SUMMARY

This application provides a method for browsing an application folderand an electronic device, to help improve efficiency of searching for afile by a user.

According to a first aspect, an embodiment of this application providesa method for browsing an application folder, where the method isimplemented on an electronic device having a touchscreen, andspecifically includes: detecting, by the electronic device, a firstoperation on the touchscreen; in response to the first operation,displaying, by the electronic device, a first user interface on thetouchscreen, where the first user interface is a setting screen of afirst application program, the first user interface includes a foldercontrol, and the folder control is used to indicate a folder of thefirst application program; detecting, by the electronic device, a secondoperation on the folder control; and in response to the secondoperation, displaying, by the electronic device, a second user interfaceon the touchscreen, where the second user interface is a content detailsscreen of the folder corresponding to the first application program.

In this embodiment of this application, because the folder control canbe displayed on the touchscreen, in response to the second operation onthe folder control, the electronic device can display the second userinterface on the touchscreen. In this way, the user can view, by usingthe second user interface, content details of the folder correspondingto the first application program. Therefore, compared with the priorart, a scope of searching for the folder corresponding to the firstapplication program is narrowed, to help improve efficiency of searchingfor a file or a folder.

In a possible design, the first operation may be an operation on thefirst control. The first control is located on a third user interface.Specifically, the electronic device may display the third user interfaceon the touchscreen in the following manners.

The electronic device displays a home screen on the touchscreen, and thehome screen includes a setting icon.

The electronic device detects a touch operation on the setting icon.

In response to the touch operation, the electronic device displays asystem setting screen on the touchscreen.

The electronic device detects an operation on the system setting screen.

In response to the operation on the system setting screen, theelectronic device displays the third user interface on the touchscreen,and the third user interface includes the first control.

The foregoing technical solution simplifies implementations.

In a possible design, the first operation is an operation on a secondcontrol, and the second control is located on a shortcut menu. Theelectronic device may display the shortcut menu on the touchscreen inthe following manners.

The electronic device displays the home screen on the touchscreen, andthe home screen includes an icon of the first application program.

The electronic device detects a heavy press operation on the icon of thefirst application program.

In response to the heavy press operation, the electronic devicedisplays, on the touchscreen, a shortcut menu corresponding to the firstapplication program, and the shortcut menu includes the second control.This technical solution helps simplify an operation of the user.

In a possible design, the folder control includes N subfolder controlscorresponding to the first application program, and N is a naturalnumber greater than 1; and each of the N subfolder controls is used toindicate one subfolder corresponding to the first application program,and each subfolder control indicates a different subfolder. Therefore,the folder corresponding to the first application program is displayedmore intuitively to the user.

In a possible design, the N subfolder controls are arranged in the firstuser interface in descending order of storage frequencies of subfoldersrespectively indicated by the N subfolder controls. By using theforegoing technical solution, the storage frequencies of subfolders aremore intuitively displayed to the user, to provide a reference for theuser to search for a file.

In a possible design, the first user interface further includes a filecontrol, and the file control is used to indicate a latest saved filefor the first application program. This helps more intuitively displaythe latest saved file to the user.

In a possible design, the electronic device may further display thefirst user interface in the following manners.

The electronic device displays a user interface of the first applicationprogram on the touchscreen, and the user interface of the firstapplication program includes a file. The electronic device detects afourth operation on the file, and in response to the fourth operation,the electronic device saves the file. After the file is successfullysaved, the electronic device displays a dialog box on the touchscreen,and the dialog box is used to prompt the user whether to view the savedfile. The electronic device detects a fifth operation performed by theuser on the dialog box, in response to the fifth operation, theelectronic device displays the first user interface on the touchscreen.In this way, the user can learn a position of the latest saved file.

In a possible design, the first operation may be a touch and holdoperation or a heavy press operation; or

the first operation may be tapping a control in a menu displayed on thetouchscreen, and in response to a detected touch and hold or heavy pressoperation, the menu is popped up and displayed on the touchscreen by theelectronic device; or

the first user interface may be a setting screen built in the firstapplication program; or

the first user interface may be a user interface that is in a systemsetting and that is used to manage the first application program;

the folder control may be a folder icon, a path link, or a virtualbutton; or

the content details screen may be a user interface of a file manager; or

the content details screen may include content included in a root foldercorresponding to the first application program; or

a value of N may be a total quantity of subfolders included in the rootfolder corresponding to the first application; or

a value of N may be a total quantity of subfolders that are included inthe root folder corresponding to the first application and that are usedto store a user file; or

the first user interface may further include a common folder control,where the common folder control is used to indicate a first folder, andthe first folder is a folder that stores files at a highest frequencyand that is in the subfolders respectively indicated by the N subfoldercontrols; or

the file may include a picture, a document, a video, and audio.

According to a second aspect, an embodiment of this application providesa method for browsing an application folder, where the method isimplemented on an electronic device having a touchscreen, andspecifically includes:

displaying, by the electronic device, a home screen on the touchscreen,where the home screen includes an icon of a first application program;

detecting, by the electronic device, a touch and hold operation on theicon of the first application program;

in response to a heavy press operation on the icon of the firstapplication program, displaying, by the electronic device, a shortcutmenu on the touchscreen, where the shortcut menu includes a firstcontrol;

detecting, by the electronic device, a touch operation on the firstcontrol;

in response to the touch operation on the first control, displaying, bythe electronic device, a first user interface on the touchscreen, where

the first user interface is a setting screen of the first applicationprogram, the first user interface includes a first folder control, asecond folder control, and a first file control, the first foldercontrol is used to indicate a first folder, the second folder control isused to indicate a second folder, the first file control is used toindicate a first file, the first file is a latest file saved by theelectronic device for the first application program, the first folderincludes the first file, the first folder and the second folder arefolders included in a root folder corresponding to the first applicationprogram, and the second folder control is located after the first foldercontrol in the first user interface;

detecting, by the electronic device, a first operation;

in response to the first operation, displaying, by the electronicdevice, a second user interface on the touchscreen, where the seconduser interface is a user interface of the first application program, andthe second user interface includes a second file;

detecting, by the electronic device, a second operation on the secondfile;

in response to the second operation, saving, by the electronic device,the second file to the second folder;

detecting, by the electronic device, a third operation on thetouchscreen; and

in response to the third operation, refreshing, by the electronicdevice, the first user interface based on a name of the firstapplication program and a save path of the second file, and displayingthe refreshed first user interface, where

the refreshed first user interface includes the first folder control,the second folder control, and a second file control, the second filecontrol indicates the second file, and the second folder control islocated before the first folder control in the first user interface.

The foregoing technical solution helps display, to the user, the foldercorresponding to the first application program, to help improveefficiency of searching for a file or a folder by the user.

According to a third aspect, an embodiment of this application providesstill another method for browsing an application folder, where themethod is implemented on an electronic device having a touchscreen, andspecifically includes:

displaying, by the electronic device, a home screen on the touchscreen,where the home screen includes an icon of a first application program;

detecting, by the electronic device, a heavy press operation on the iconof the first application program;

in response to the heavy press operation, displaying, by the electronicdevice, a shortcut menu on the touchscreen, where the shortcut menuincludes a first control;

detecting, by the electronic device, a touch operation on the firstcontrol; and

in response to the touch operation, displaying, by the electronic deviceon the touchscreen, a content details screen of a folder correspondingto the first application program.

The foregoing technical solution helps simplify an operation manner ofthe user, and further improves efficiency of searching for a file or afolder by the user.

In a possible design, the content details screen is a user interfacethat is in file management and that is for content details of the foldercorresponding to the first application program. This helps simplify animplementation.

According to a fourth aspect, an embodiment of this application providesan electronic device, including a touchscreen, where the touchscreenincludes a touch-sensitive surface and a display; one or moreprocessors; a memory; a plurality of application programs; and one ormore computer programs, where the one or more computer programs arestored in the memory, the one or more computer programs include aninstruction, and when the instruction is executed by the electronicdevice, the electronic device may be enabled to perform the methodprovided in the foregoing aspects.

According to a fifth aspect, an embodiment of this application providesan apparatus, where the apparatus is included in an electronic device,and the apparatus has a function of implementing behavior of theelectronic device in the methods in any one of the foregoing aspects.The function may be implemented by hardware, or may be implemented byhardware executing corresponding software. The hardware or softwareincludes one or more modules or units that correspond to the foregoingfunction.

According to a sixth aspect, an embodiment of this application providesa chip, where the chip is coupled to a memory in an electronic device,to perform the method according to any one of the foregoing aspects.

According to a seventh aspect, an embodiment of this applicationprovides a computer storage medium, where the computer storage mediumstores a program instruction, and when the program instruction is run onan electronic device, the electronic device is enabled to perform themethod according to any one of the foregoing aspects.

According to an eighth aspect, an embodiment of this applicationprovides a computer program product, where when the computer programproduct runs on an electronic device, the electronic device is enabledto perform the method according to any one of the foregoing aspects.

In addition, for technical effects brought by the fourth aspect to theeighth aspect, refer to the descriptions in the first aspect to thethird aspect. Details are not described herein again.

It should be noted that “couple” in the embodiments of this applicationindicates direct combinations or indirect combinations of two parts.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic diagram of a hardware structure of a smartphone;

FIG. 2 is a schematic architectural diagram of an operating systemaccording to an embodiment of this application;

FIG. 3 is a schematic diagram of a file structure according to anembodiment of this application;

FIG. 4A and FIG. 4B are schematic diagrams of a user interface accordingto an embodiment of this application;

FIG. 5 is a schematic diagram of a user interface according to anotherembodiment of this application;

FIG. 6a -1 and FIG. 6a -2 are schematic diagrams of some other userinterfaces according to another embodiment of this application;

FIG. 6b is a schematic diagram of another user interface according toanother embodiment of this application;

FIG. 7A and FIG. 7B are schematic diagrams of some other user interfacesaccording to another embodiment of this application;

FIG. 8 is a schematic diagram of another user interface according toanother embodiment of this application;

FIG. 9A and FIG. 9B are schematic diagrams of some other user interfacesaccording to another embodiment of this application;

FIG. 10 is a schematic diagram of a user interface according to anotherembodiment of this application;

FIG. 11a -1 and FIG. 11a -2 are schematic diagrams of some other userinterfaces according to another embodiment of this application;

FIG. 11b is a schematic diagram of another user interface according toanother embodiment of this application;

FIG. 12 is a schematic diagram of another user interface according toanother embodiment of this application;

FIG. 13A and FIG. 13B are schematic diagrams of some other userinterfaces according to another embodiment of this application;

FIG. 14A and FIG. 14B are schematic diagrams of some other userinterfaces according to another embodiment of this application;

FIG. 15A and FIG. 15B are schematic diagrams of some other userinterfaces according to another embodiment of this application;

FIG. 16A and FIG. 16B are schematic diagrams of some other userinterfaces according to another embodiment of this application;

FIG. 17 is a schematic diagram of another file structure according toanother embodiment of this application;

FIG. 18 is a schematic diagram of another user interface according toanother embodiment of this application;

FIG. 19 is a schematic diagram of another application scenario accordingto another embodiment of this application;

FIG. 20 is a schematic diagram of software architectures of a mobilephone and a computer according to another embodiment of thisapplication;

FIG. 21 is a schematic flowchart of a data writing method according toan embodiment of this application;

FIG. 22 is a schematic flowchart of a data reading method according toan embodiment of this application;

FIG. 23 is a schematic diagram of another file structure according toanother embodiment of this application;

FIG. 24A and FIG. 24B are schematic diagrams of some other userinterfaces according to another embodiment of this application;

FIG. 25A and FIG. 25B are schematic diagrams of another applicationscenario according to another embodiment of this application;

FIG. 26 is a schematic flowchart of a method for browsing an applicationfolder according to an embodiment of this application;

FIG. 27 is a schematic flowchart of another method for browsing anapplication folder according to another embodiment of this application;and

FIG. 28 is a schematic structural diagram of an electronic deviceaccording to another embodiment of this application.

DESCRIPTION OF EMBODIMENTS

This application may be applied to an electronic device. In someembodiments of this application, the electronic device may be anelectronic device that includes a function such as a personal digitalassistant and/or a music player, for example, a smartphone, a tabletcomputer, or a wearable device (such as a smartwatch) having a wirelesscommunication function. Example embodiments of the electronic deviceinclude but are not limited to carrying Android®, Microsoft®, or anotheroperating system.

Usually, the electronic device supports a plurality of applications, forexample, one or more of a drawing application, a presentationapplication, a word processing application, a game application, atelephony application, a video player application, a music playerapplication, an email application, an instant message receiving andsending application, a photo management application, a cameraapplication, a browser application, a calendar application, a clockapplication, a payment application, and a health management application.

The following uses an example in which the electronic device is asmartphone for specific description.

For example, FIG. 1 is a possible schematic diagram of a hardwarestructure of a smartphone. It should be understood that a mobile phone100 shown in the figure is merely an example of the electronic device,and the mobile phone 100 may have more or fewer components than thoseshown in the figure, may combine two or more components, or may havedifferent component configurations. Various components shown in thefigure may be implemented on hardware, software, or a combination ofhardware and software that includes one or more signal processing and/orapplication-specific integrated circuits.

The mobile phone 100 may include one or more processors 101, a memory102, a radio frequency (radio frequency, RF) circuit 103, an audiocircuit 140, a loudspeaker 141, a microphone 142, a touchscreen 150, oneor more sensors 106, and a wireless fidelity (wireless fidelity, Wi-Fi)apparatus 107, a peripheral interface 108, and a power supply apparatus109. These components may perform communication through one or morecommunications buses or signal cables (not shown in FIG. 1). A personskilled in the art may understand that the hardware structure shown inFIG. 1 does not constitute a limitation on the mobile phone 100. Themobile phone 100 may include more or fewer components than those shownin the figure, or combine some components, or have different componentarrangements.

The following describes in detail the components of the mobile phone100.

The processor 101 is a control center of the mobile phone 100. Theprocessor 101 is connected to parts of the mobile phone 100 by usingvarious interfaces and cables, runs or executes an application program(application, APP) stored in the memory 102, and invokes data and aninstruction stored in the memory 102, to perform various functions ofthe mobile phone 100 and process data. For example, the processor 101may establish a correspondence between a folder and an application,collect statistics on a most common folder path, and record a latestsaved file, a folder path corresponding to the file, and the like.

In some embodiments, the processor 101 may include one or moreprocessing units. An application processor and a modem processor may beintegrated into the processor 101. The application processor mainlyprocesses an operating system, a user interface, an application program,and the like, and the modem processor mainly processes wirelesscommunication. It may be understood that, alternatively, the modemprocessor may not be integrated in the processor 101. For example, theprocessor 101 may be a Kirin 970 chip manufactured by HuaweiTechnologies Co., Ltd. In some other embodiments of this application,the processor 101 may further include a fingerprint verification chip,configured to verify a collected fingerprint.

The memory 102 is used to store an application program, data, andvarious operating systems such as an iOS® operating system developed byApple and an Android® operating system developed by Google. The memory102 mainly includes a program storage area and a data storage area. Theprogram storage area may store an operating system and an applicationprogram required by at least one function (for example, a sound playingfunction and an image playing function). The data storage area may storedata (for example, a phone book) created based on use of the mobilephone 100. For example, the data storage area may store a photo or avideo shot by the user by using the mobile phone 100, or audio recordedby the user by using the mobile phone 100. The data storage area mayfurther store a file such as a picture downloaded by the user, or adocument created by the user, or the like. In addition, the memory 102may include a high-speed random access memory, and may further include anon-volatile memory, for example, a magnetic disk storage device, aflash storage device, or another non-volatile solid-state storagedevice.

The RF circuit 103 may be configured to send and receive a radio signalin an information sending and receiving process or in a call process.Specifically, the RF circuit 103 may receive downlink data from a basestation and then send the downlink data to the processor 101 forprocessing. In addition, the RF circuit 103 may further send uplink datato the base station. Usually, the RF circuit 103 usually includes but isnot limited to an antenna, at least one amplifier, a transceiver, acoupler, a low noise amplifier, a duplexer, and the like. In addition,the RF circuit 103 may further communicate with another device throughwireless communication. The wireless communication may use anycommunications standard or protocol, including but not limited to globalsystem for mobile communications, a general packet radio service, codedivision multiple access, wideband code division multiple access, longterm evolution, an email, a short message service, and the like.

The audio circuit 140, a speaker 141, and a microphone 142 may providean audio interface between the user and the mobile phone 100. The audiocircuit 140 may convert received audio data into an electrical signaland transmit the electrical signal to the speaker 141, and the speaker141 converts the electrical signal into a sound signal for output. Inaddition, the microphone 142 converts a collected sound signal into anelectrical signal, and the audio circuit 140 receives the electricalsignal, converts the electrical signal into audio data, and then outputsthe audio data to the RF circuit 103, to send the audio data to, forexample, a mobile phone, or outputs the audio data to the memory 102 forfurther processing.

The touchscreen 150 may include a touch-sensitive surface 151 and adisplay 152. The touch-sensitive surface 151 (for example, a touchpanel) may collect a touch event performed by the user of the mobilephone 100 on or near the touch-sensitive surface 151 (for example, anoperation performed by the user on the touch-sensitive surface 151 ornear the touch-sensitive surface 151 by using any suitable object suchas a finger or a stylus), and send collected touch information toanother component such as the processor 101. The touch event performedby the user near the touch-sensitive surface 151 may be referred to as afloating touch. The floating touch may mean that the user does not needto directly touch the touchpad for selecting, moving, or dragging anobject (for example, an App icon), and the user only needs to be nearthe electronic device to execute a desired function. In an applicationscenario of the floating touch, terms such as “touch” and “contact” donot imply a direct contact with the touchscreen 150, but a contact nearor close to the touchscreen 150. The touch-sensitive surface 151 onwhich the floating touch can be performed may be implemented in acapacitive type, an infrared light sensing type, an ultrasonic wavetype, or the like.

The touch-sensitive surface 151 may include two parts: a touch detectionapparatus and a touch controller. The touch detection apparatus detectsa touch orientation of the user, detects a signal generated by a touchoperation, and transmits the signal to the touch controller. The touchcontroller receives touch information from the touch detectionapparatus, converts the touch information into touchpoint coordinates,and sends the touchpoint coordinates to the processor 101. The touchcontroller may further receive an instruction sent by the processor 101,and execute the instruction. In addition, the touch-sensitive surface151 may be implemented in a plurality of types such as a resistive type,a capacitive type, an infrared type, and a surface acoustic wave type.

The display (also referred to as a display screen) 152 may be configuredto display information entered by the user or information provided forthe user, and various menus of the mobile phone 100. The display 152 mayinclude two parts: a display controller and a display apparatus. Thedisplay controller is configured to receive a signal or data sent by theprocessor 101, to drive to display a corresponding screen on the displayapparatus. For example, in this embodiment of this application, thedisplay apparatus may be configured by using an LCD (liquid crystaldisplay, a liquid crystal display), an organic light-emitting diode(organic light-emitting diode, OLED), or the like. For example, thedisplay apparatus is configured by using an active matrix organiclight-emitting diode (active matrix organic light emitting diode,AMOLED).

It should be understood that the touch-sensitive surface 151 may coverthe display 152. After detecting a touch event on or near thetouch-sensitive surface 151, the touch-sensitive surface 151 transmitsthe touch event to the processor 101 to determine a type of the touchevent, and then the processor 101 may provide corresponding visualoutput on the display 152 based on the type of the touch event. Althoughin FIG. 1, the touch-sensitive surface 151 and the display 152 are usedas two independent components to implement input and output functions ofthe mobile phone 100, in some embodiments, the touch-sensitive surface151 and the display 152 may be integrated to implement the input andoutput functions of the mobile phone 100. It may be understood that thetouchscreen 150 is formed by stacking a plurality of layers ofmaterials. In this embodiment of this application, only thetouch-sensitive surface (layer) and the display (layer) are shown, andanother layer is not described in this embodiment of this application.In addition, in some other embodiments of this application, thetouch-sensitive surface 151 may cover the display 152, and a size of thetouch-sensitive surface 151 is greater than a size of the display 152,so that the display 152 is completely covered by the touch-sensitivesurface 151. Alternatively, the touch-sensitive surface 151 may bedisposed on a front of the mobile phone 100 in a form of a full panel,in other words, touch of the user on the front of the mobile phone 100can be sensed by the mobile phone. Therefore, full touch experience onthe front of the mobile phone can be implemented. In some otherembodiments, the touch-sensitive surface 151 is disposed on a front ofthe mobile phone 100 in a full panel form, and the display 152 may alsobe disposed on the front of the mobile phone 100 in a full panel form.Therefore, a bezel-less structure can be implemented on the front of themobile phone. In some other embodiments of this application, thetouchscreen 150 may further include a series of pressure sensor arrays,so that the mobile phone can sense pressure exerted on the touchscreen150 by the touch event.

The one or more sensors 106 may be a light sensor, a motion sensor,another sensor, and the like. Specifically, the light sensor may includean ambient light sensor and a proximity sensor. The ambient light sensormay adjust luminance of the display 152 based on brightness of ambientlight, and the proximity sensor may turn off a power supply of thedisplay 152 when the mobile phone 100 moves to an ear. As a motionsensor, an accelerometer sensor may detect acceleration values in alldirections (usually on three axes), may detect a value and a directionof gravity when the accelerometer sensor is stationary, and may beapplied to an application to recognize a mobile phone posture (forexample, screen switching between landscape and portrait modes, arelated game, and magnetometer posture calibration), a function relatedto vibration recognition (such as a pedometer and a knock), and thelike.

In some embodiments of this application, the sensor 106 may furtherinclude a fingerprint sensor. For example, the fingerprint sensor may bedisposed on a rear side of the mobile phone 100 (for example, below therear-facing camera), or the fingerprint sensor is disposed on the frontside of the mobile phone 100 (for example, below the touchscreen 150).In addition, a fingerprint recognition function may be implemented byconfiguring the fingerprint sensor on the touchscreen 150. To bespecific, the fingerprint sensor may be integrated with the touchscreen150 to implement the fingerprint recognition function of the mobilephone 100. In this case, the fingerprint sensor may be disposed on thetouchscreen 150, or may be a part of the touchscreen 150, or may bedisposed on the touchscreen 150 in another manner. In addition, thefingerprint sensor may be further implemented as a full-panelfingerprint sensor. Therefore, the touchscreen 150 may be considered asa panel on which a fingerprint may be collected at any position. In someembodiments, the fingerprint sensor may process a collected fingerprint(for example, verify the collected fingerprint), and send a fingerprintprocessing result (for example, whether the fingerprint passesverification) to the processor 101, and the processor 101 performscorresponding processing based on the fingerprint processing result. Insome other embodiments, the fingerprint sensor may further send thecollected fingerprint to the processor 101, so that the processor 101processes the fingerprint (for example, verifies the fingerprint). Thefingerprint sensor in this embodiment of this application may use anytype of sensing technology, including but not limited to an opticalsensing technology, a capacitive sensing technology, a piezoelectricsensing technology, an ultrasonic sensing technology, or the like. Inaddition, for a specific technical solution of integrating thefingerprint sensor into the touchscreen 150 in this embodiment of thisapplication, refer to patent application No. US 2015/0036065 A1, filedwith the United States Patent and Trademark Office and entitled“FINGERPRINT SENSOR IN ELECTRONIC DEVICE”, which is incorporated in theembodiments of this application by reference in its entirety. Inaddition, other sensors such as a gyroscope, a barometer, a hygrometer,a thermometer, and an infrared sensor may be configured in the mobilephone 100. Details are not described herein.

The Wi-Fi apparatus 107 is configured to provide, for the mobile phone100, network access that complies with a Wi-Fi-related standardprotocol. The mobile phone 100 may access a Wi-Fi access point by usingthe Wi-Fi apparatus 107, to help the user receive and send an email,browse a web page, access streaming media, and the like. The Wi-Fiapparatus 107 provides wireless broadband internet access for the user.In some other embodiments, the Wi-Fi apparatus 107 may also be used as aWi-Fi wireless access point, to provide Wi-Fi network access for anotherdevice.

The peripheral interface 108 is configured to provide various interfacesfor an external input/output device (for example, a keyboard, a mouse,an external display, an external memory, or a subscriber identificationmodule card). For example, the peripheral interface 108 is connected tothe mouse by using a universal serial bus interface, and is connected toa SIM card provided by an operator by using a metal contact on a cardslot of the subscriber identification module card. The peripheralinterface 108 may be configured to couple the external input/outputperipheral device to the processor 101 and the memory 102.

The mobile phone 100 may further include the power supply apparatus 109(for example, a battery and a power management chip) that supplies powerto the components. The battery may be logically connected to theprocessor 101 by using the power management chip, so that functions suchas charging, discharging, and power consumption management are managedby using the power supply apparatus 109.

Although not shown in FIG. 1, the mobile phone 100 may further include aBluetooth apparatus, a positioning apparatus, a camera (for example, afront-facing camera or a rear-facing camera), a flashlight, a microprojection apparatus, a near field communication (near fieldcommunication, NFC) apparatus, or the like. Details are not describedherein. The front-facing camera may be configured to capture facialfeature information, and the processor 101 may perform facialrecognition on the facial feature information, to perform subsequentprocessing.

The following describes the embodiments of this application in detail byusing the mobile phone 100 as an example. To help the user search for afile on the mobile phone 100, a folder corresponding to each applicationinstalled on the mobile phone 100 may be prompted to the user. In thisway, when searching for a file stored by using an application (forexample, WeChat), the user can narrow a file search scope, to helpimprove efficiency of searching for a file by the user.

An Android operating system is used as an example. For example, theAndroid operating system in this embodiment of this application is shownin FIG. 2. As shown in FIG. 2, the Android operating system mainlyincludes a kernel layer (Kernel), a framework layer (Framework), and anapplication layer (Applications). In some embodiments, a system runtimelibrary (libraries) layer may further be included between the kernellayer and the framework layer. The system runtime library layer providessupport for an upper layer, that is, the framework layer. When theframework layer is used, a C/C++ library included in the system runtimelibrary layer may be invoked to implement a function to be implementedby the framework layer.

The kernel layer is a hardware abstract layer (hardware abstract layer,HAL) between hardware and software, and is an abstraction of specificimplementation of a hardware device. The kernel layer may include aninput/output device driver (such as a keyboard driver, a touchscreendriver, a headset driver, a speaker driver, and a microphone driver), auniversal serial bus (universal serial bus, USB) driver, a device node,and the like. When the user performs an operation on the input device,the input device driver is configured to convert the operation performedby the user on the input device into an input event, and report theinput event to the framework layer or the application layer.

The framework layer includes a package manager (package manager), adownload manager (download manager), a file system manager (file systemmanager), a directory manager (directory manager), and the like. Thepackage manager is configured to: after an installation package of anapplication is obtained, install a corresponding application based onthe installation package, and record an installation progress of theapplication, and the like. After being invoked by an application at theapplication layer, the download manager is configured to download acorresponding file, record a download progress of the file, and storethe file into a specified folder after the file is successfullydownloaded. After being invoked by an application at the applicationlayer, the package manager at the framework layer, the download manager,or the like, the file system manager is configured to create a folder inthe memory 102 (for example, sdcard) of the mobile phone 100. It shouldbe noted that the directory manager is a newly added module in thisembodiment of this application, and may be configured to record acorrespondence among a folder name, an application name, and a folderpath. For example, if the file system manager creates a folder named“Weixin” in a local folder sdcard of WeChat, the file system managerstores a correspondence among a folder name “Weixin”, an applicationname “WeChat”, and a path “sdcard/Weixin” of the folder Weixin in thedirectory manager. For example, a correspondence among “Weixin”,“WeChat”, and “sdcard/Weixin” may be shown in Table 1.

TABLE 1 Application name Folder name File path WeChat Weixinsdcard/Weixin

The application layer includes a native application (native application)(for example, settings, a home screen, and file management) and athird-party application (for example, WeChat) that are installed on themobile phone 100. The application at the application layer is configuredto: receive the input event reported by the input device, performcorresponding processing on the input event, and output the input eventby using the output device (for example, a display screen), so that theuser can view the input event.

To enable the mobile phone 100 to notify the user of a correspondencebetween an application and a folder, a related user interface may bedisplayed on the touchscreen 150 of the mobile phone 100 to notify theuser of the correspondence between an application and a folder. Anexample in which a first user interface is used to prompt a foldercorresponding to WeChat is used. If the mobile phone 100 detects a firstoperation on the touchscreen 150, in response to the first operation,the mobile phone 100 may display the first user interface on thetouchscreen 150. The first user interface includes a folder control, andthe folder control is used to indicate the folder corresponding toWeChat. If the mobile phone 100 detects an operation on the foldercontrol, in response to the operation, the mobile phone 100 may display,on the touchscreen 150, a content details screen of the foldercorresponding to WeChat. For example, the first user interface in thisembodiment of this application may be a setting screen corresponding toWeChat.

In an example, as shown in FIG. 2, the directory manager is added to theframework layer. The directory manager may be configured to store acorrespondence among a folder name, an application name, and a folderpath. When content stored in the directory manager changes, the changeis reported to settings at the application layer, and the settingsgenerates or refreshes the first user interface based on informationreported by the directory manager.

For example, as shown in FIG. 3, in a WeChat installation process, thefile system manager at the framework layer creates a root folder Weixin,a subfolder Picture, a subfolder

Game, a subfolder Video, and a subfolder Document in a folder sdcard.The subfolder Picture is used to store a picture transmitted by the userin a process of chatting by using WeChat. The subfolder Game is used tostore data generated when the user use a WeChat game. The subfolderVideo is used to store a video transmitted by the user in a process ofchatting. The subfolder Document is used to store a program file relatedto WeChat running. The file system manager at the framework layer maystore a correspondence between a name “Weixin” of the root folder, aname “Weixin” of the application, and the path “sdcard/Weixin” of theroot folder in the directory manager at the framework layer.

After storing the correspondence among “Weixin”, “WeChat”, and“sdcard/Weixin”, the directory manager may report the correspondenceamong “Weixin”, “WeChat”, and “sdcard/Weixin” to the settings (Settings)at the application layer. Then, the settings may generate a first userinterface for WeChat based on the correspondence among “Weixin”,“WeChat”, and “sdcard/Weixin”. The first user interface is a userinterface that is configured to manage WeChat and that is in thesettings, the first user interface includes a control of the root folderWeixin, and the control of the root folder Weixin is used to indicatethe root folder. If the mobile phone 100 detects an operation (forexample, an operation such as tapping, touching and holding, or heavypressing) on the control of the root folder Weixin, in response to theoperation, the mobile phone 100 displays a content details screen of theroot folder Weixin on the touchscreen 150. For example, the contentdetails screen includes a subfolder or a specific file (for example, apicture or a video). In specific implementation, the content detailsscreen may be a user interface for file management.

For example, the first user interface may be a user interface 400 shownin FIG. 4A, and the content details screen may be a user interface 410shown in FIG. 4B. The user interface 400 includes a folder control 401.The folder control 401 is used to indicate a root folder Weixin. Asshown in FIG. 4A, the folder control 401 is an icon of the root folderWeixin. Because the folder control may be implemented by using a foldericon, the first user interface may be simpler, and the user canconveniently view the folder control. In addition, in some otherembodiments, the folder control 401 may be a path link of the rootfolder Weixin, or may be a virtual button, or the like. This is notlimited herein.

In some embodiments, the user interface 400 further includes a control406 configured to return to an upper-level setting menu. The userinterface 410 includes a control 402 indicating a subfolder Picture, acontrol 403 indicating a subfolder Game, a control 404 indicating asubfolder Video, and a control 405 indicating a subfolder Document. Thecontrol 402 is configured to receive input of the user, and display, onthe touchscreen 150, a user interface including content of the subfolderPicture. The control 403 is configured to receive input of the user, anddisplay, on the touchscreen 150, a user interface including content ofthe subfolder Game. The control 404 is configured to receive input ofthe user, and display, on the touchscreen 150, a user interfaceincluding content of the subfolder Video. The control 405 is configuredto receive input of the user, and display, on the touchscreen 150, auser interface including content of the subfolder Document. The control401 is used as an example. If the mobile phone 100 detects an operationof touching the control 401 by the user, in response to the operation,the mobile phone 100 may display the user interface 410 on thetouchscreen 150. Because the user may perform an operation on the foldercontrol 401, the touchscreen 150 can display the user interface 410, andall controls displayed in the user interface 410 are used to indicatesubfolders corresponding to WeChat, the user can determine folderscorrespond to WeChat. This helps improve, to some extent, efficiency ofsearching for a file stored in a process of using WeChat by the user.

In addition, in some embodiments, as shown in FIG. 4B, the userinterface 410 may further include some function controls, for example,new folder, search, refresh, sort, and more. These function controlshelp the user easily find and operate a folder.

In some other embodiments of this application, the first user interfacefor WeChat may alternatively be a user interface 500 shown in FIG. 5.The user interface 500 includes path information “sdcard/Weixin” of theroot folder Weixin and a control 501. The control 501 is configured toreceive input of the user, and display a content details screen of theroot folder Weixin on the touchscreen 150. For example, the contentdetails screen may be the user interface 410 in

FIG. 4B. An example in which the content details screen is the userinterface 410 shown in FIG. 4B is used. If the mobile phone 100 detectsan operation of touching the control 501 by the user, in response to theoperation, the mobile phone 100 may display the user interface 410 onthe touchscreen 150. In some other embodiments, the first user interfacefurther includes a control 502. The control 502 is configured to returnto an upper-level setting menu.

In some other embodiments, the file system manager at the frameworklayer may store, to the directory manager, names of subfolders includedin the root folder WeiXin, an application name “WeChat”, and pathscorresponding to the subfolders. The directory manager reports the namesof the subfolders, the name of the application, and the pathscorresponding to the subfolders to the settings of the applicationlayer. The settings generates the first user interface based on thenames of subfolders, the name of the application, and the pathscorresponding to the subfolders. The first user interface includes acontrol corresponding to each subfolder. In this scenario, a filestructure of the root folder Weixin shown in FIG. 3 is used as anexample. For example, the first user interface may be a user interface600 shown in FIG. 6a -1. The user interface 600 includes a control 602indicating a subfolder Picture, a control 603 indicating a subfolderGame, a control 605 indicating a subfolder Video, and a control 606indicating a subfolder Document. The control 602 is configured toreceive input of the user, and display, on the touchscreen 150, contentincluded in the subfolder Picture. The control 603 is configured toreceive input of the user, and display, on the touchscreen 150, contentincluded in the subfolder Game. The control 604 is configured to receiveinput of the user, and display, on the touchscreen 150, content includedin the subfolder Video. The control 605 is configured to receive inputof the user, and display, on the touchscreen 150, content included inthe subfolder Document. For example, if the mobile phone 100 detects anoperation of touching the control 602 by the user, in response to theoperation, the mobile phone 100 displays the user interface 610 on thetouchscreen 150. The user interface 610 is configured to display contentincluded in the subfolder Picture. In some other embodiments, the userinterface 600 further includes a control 601. The control 601 is used toreturn to display an upper-level setting menu. Because the first userinterface directly includes a subfolder control, a folder correspondingto WeChat can be more intuitively prompted to the user, to improve userexperience.

During specific implementation, controls in the user interface 600 maybe sorted based on a time sequence of latest storage of a file in eachsubfolder, or may be sorted based on a sequence of initial letters ofnames of subfolders, or may be sorted based on a sequence of creatingsubfolders in a WeChat installation process, or may be sorted indescending order of frequencies of storing files in the subfolders, andthe like. This is not limited herein. For example, the controls aresorted based on a time sequence of latest storage of the files, if thelast time when a picture is saved in the subfolder Picture is May 18,2018, no file is saved in the subfolder Game, the last time when a fileis saved in the subfolder Video is May 30, 2018, and the last time whena file is saved in the subfolder Document is Jun. 1, 2018, in this case,the mobile phone 100 displays, from top to bottom, the controls of thesubfolders on the touchscreen 150 in the following order: the subfolderDocument, the subfolder Video, the subfolder Picture, and the subfolderGame. In some embodiments, because the subfolder Game does not include afile, the user interface 600 shown in FIG. 6a -1 may further not include(in other words, not display) the control 603. If the controls in theuser interface 600 may be arranged based on the time sequence of lateststorage of a file in each subfolder, this helps the user understand timeat which the subfolders store files most recently, and helps improveconvenience of searching for a file or a folder to some extent.

In some other embodiments of this application, because the subfolderDocument is used to store a program file related to running WeChat, butis not used to store a user file, the file system manager may not storethe subfolder Document in the directory manager. In this scenario, theuser interface 600 shown in FIG. 6a -1 may further not include thecontrol 605. In the foregoing manner, a range in which the user searchesfor a file is narrowed, to further improve efficiency of searching for afile or a folder by the user.

In some other examples, the first user interface may further be a userinterface 620 shown in FIG. 6b . For example, the user interface 620includes a path and a control 622 of a subfolder Picture, a path and acontrol 623 of a subfolder Game, a path and a control 624 of a subfolderVideo, and a path and a control 625 of a subfolder Document. The control622 is configured to receive input of the user, and display, on thetouchscreen 150, content included in the subfolder Picture. The control623 is configured to receive input of the user, and display, on thetouchscreen 150, content included in the subfolder Game. The control 624is configured to receive input of the user, and display, on thetouchscreen 150, content included in the subfolder Video. The control625 is configured to receive input of the user, and display, on thetouchscreen 150, content included in the subfolder Document. Forexample, if the mobile phone 100 detects an operation of touching thecontrol 622 by the user, in response to the operation, the mobile phone100 displays the user interface 610 on the touchscreen 150. The userinterface 610 is configured to display content included in the subfolderPicture. In some other embodiments, the user interface 600 furtherincludes a control 621. The control 601 is configured to return todisplay an upper-level setting menu. The user interface 620 shown inFIG. 6b further includes a path of a subfolder in addition to a control,so that the user can more intuitively learn path information of thesubfolder.

In some other embodiments of this application, the file system managerat the framework layer may further collect statistics on a frequency ofstoring a file in a subfolder at an interval of preset duration, andwhen storing a name of each subfolder, the name “WeChat” of theapplication, and a path corresponding to each subfolder to the directorymanager, mark a name of a subfolder that is most frequently stored. Forexample, the subfolder Picture has the highest storage frequency, and aname of the subfolder Picture is marked as Picture-frequency No. 1. Inthis scenario, the settings at the application layer generates the firstuser interface based on information reported by the directory manager.For example, the first user interface may be a user interface 700 shownin FIG. 7B. A difference between the user interface 600 shown in FIG. 6a-1 and the user interface 700 is that a control 707 of a common folderis added. Compared with the user interface 600, the user interface 700more directly displays the common folder to the user. It may beunderstood that the user may display, on the touchscreen 150, content ofa corresponding part of the user interface 700 by sliding up and down.

To ensure accuracy of the control of the common folder in the userinterface 700, the file system manager saves a statistical result to thedirectory manager at an interval of preset duration. The directorymanager compares whether the currently saved statistical result is thesame as a previously saved statistical result, and if yes, deletes onestatistical result, or if the currently saved statistical result ischanged, saves the currently saved statistical result, and deletes thepreviously saved statistical result. Then, the directory manager reportsthe current statistical result to the settings, and the settingschanges, based on the reported statistical result, the control of thecommon folder in the user interface 700 to a control of a folder in thestatistical result. It should be noted that the preset duration may becorrespondingly set based on an actual situation, for example, 2 hoursor 30 minutes. This is not limited herein.

In addition, WeChat is used as an example. If the first user interfacefor WeChat includes controls of all subfolders, in a subsequent processin which the mobile phone 100 runs WeChat, a new subfolder may becreated. To ensure reliability of the controls included in the firstuser interface for WeChat, when the file system manager creates asubfolder for WeChat, for example, the file system manager creates asubfolder Audio in a root folder Weixin, the file system manager storesa name “Audio” of the subfolder, a name “WeChat” of the application, andpath information sdcard/Weixin/Audio of the subfolder Audio to thedirectory manager. The subfolder audio is used to cache an audio file.After detecting that “Audio”, “WeChat”, and “sdcard/Weixin/Audio” arestored, the directory manager reports “Audio”, “WeChat”, and“sdcard/Weixin/Audio” to the settings at the application layer. Thesettings refreshes the first user interface for WeChat based on “Audio”,“WeChat”, and “sdcard/Weixin/Audio”. For example, if the first userinterface before refreshing is the user interface 600 shown in FIG. 6a-1, the refreshed user interface can be a user interface 800 shown inFIG. 8. Different from the user interface 600, the user interface 800includes a control 801, and the control 801 is configured to link to auser interface that displays content included in a subfolder Audio.

To help the user search for a latest file saved in a process of using anapplication, in some embodiments, after successfully executing adownload task, the download manager or the file system manager saves aname of a downloaded file, a name of the application, and a path of thefile to the directory manager. After detecting that the information isstored, the directory manager reports the information to the settings atthe application layer. In this scenario, the first user interfacegenerated by the settings for the application further includes a filecontrol, and the file control is used to indicate a latest saved file.For example, the first user interface may be a user interface 900 shownin FIG. 9A. A difference between the user interface 900 and the userinterface 600 shown in FIG. 6a -1 is that the user interface 900 furtherincludes a file control 901, and the file control 901 is used toindicate a latest saved file. For example, a latest saved file is apicture that is in the user interface 910 and that includes a name“scenery” is used. If the mobile phone 100 detects an operation oftouching the file control 901 by the user, in response to the operationof touching the file control 901 by the user, the mobile phone 100displays the user interface 910 on the touchscreen 150. It may beunderstood that the file control 901 may be a zoomed-out picture of thepicture whose name is “scenery”, or may be another identifier (such asthe name of the picture, “scenery”). This is not limited herein.

When the file system manager or the download manager saves a new file, aname of the newly saved file, a name of an application, and a path ofthe file are saved to the directory manager. After detecting that theinformation is stored, the directory manager reports the information tothe settings at the application layer. Then, the settings refreshes,based on the information, a control of the latest saved file included inthe first user interface.

It should be noted that the first user interface in this embodiment ofthis application may further be a user interface 1000 shown in FIG. 10.The user interface 1000 includes controls of all subfolders included ina root folder Weixin, a control of a common folder, and a control of alatest saved file.

In some other embodiments of this application, to simplify an operationperformed by the user on the mobile phone 100, so that the first userinterface is displayed on the touchscreen 150, a control may be added toa system setting screen for WeChat. When the mobile phone 100 detects anoperation on the control, in response to the operation, the mobile phone100 displays the first user interface on the touchscreen 150. It shouldbe noted that a name of the control is not limited in this embodiment ofthis application. For example, the name of the control may beapplication folder management, or may be folder management. Thefollowing uses the application folder management as an example.

For example, the system setting screen for WeChat is a user interface1100 shown in FIG. 11a -1, and application file management 1101 is addedto the user interface 1100. When the mobile phone 100 detects anoperation on the application folder management 1101, in response to theoperation, the mobile phone 100 displays the first user interface on thetouchscreen 150. The operation on the application folder management 1101may be a touch operation, a touch and hold operation, a heavy pressoperation, or the like on the application folder management 1101. Thisis not limited herein. An example in which the first user interface isthe user interface 600 shown in FIG. 6a -1 is used. When the mobilephone 100 detects an operation on the application folder management1101, in response to the operation, the mobile phone 100 displays theuser interface 600 on the touchscreen 150. In response to an operationof touching, by the user, a setting icon included in a home screen, themobile phone 100 displays the system setting screen on the touchscreen150. For example, in response to the operation on the setting icon, thesystem setting screen displayed on the touchscreen 150 by the mobilephone 100 may be a user interface 1120 shown in FIG. 11b . The userinterface 1120 includes WeChat 1121. In addition, the user interface1120 may further include controls such as a search box, enabling cloudbackup, screen locking, wireless and network, and file management. Usinga system setting screen shown in FIG. 11b as an example, in response toa touch operation of the user on WeChat 1121 included in the systemsetting screen, the mobile phone 100 may display the user interface 1100on the touchscreen 150.

For example, the home screen may be shown in FIG. 12. Specifically, thehome screen 1200 includes a WeChat icon 1202, a setting icon 1203, acamera icon 1204, a file management icon 1205, a status bar 1201, and aDOCK bar 1206. The status bar 1201 includes a telecom operatoridentifier (China Mobile), a network standard (4G), time, a Bluetoothicon, remaining power, and the like. In some other embodiments, thestatus bar 1201 may further include a Wi-Fi icon, an external deviceicon, and the like. The dock bar 1206 includes a phone icon, an SMSmessage icon, an email icon, and a weather icon. It should be understoodthat the user may modify, based on a requirement of the user,application icons included in the DOCK bar.

In addition, for ease of user operation, a control may be further addedto a shortcut menu (for example, a POP box) of each application by usinga home screen launcher. If the mobile phone 100 detects an operation onthe control, in response to the operation, the mobile phone 100 displaysthe first user interface on the touchscreen 150.

The home screen1200 shown in FIG. 12 is used as an example. As shown inFIG. 13A, in response to an operation on the WeChat icon, the mobilephone 100 may display a WeChat shortcut menu 1300 on the touchscreen150. The shortcut menu 1300 includes application folder management 1301,my QR code 1302, scan 1303, collection and payment 1304, and share“WeChat” 1305. It should be noted that the operation on the WeChat iconmay be an operation of touching and holding or heavy pressing the WeChaticon, an operation of tapping or double-tapping the WeChat icon, or thelike. This is not limited herein. An example in which the first userinterface is the user interface 600 shown in FIG. 6a -1 is used. Inresponse to an operation on the application folder management 1301, themobile phone 100 may display the user interface 600 on the touchscreen150.

In some other embodiments, in response to an operation of saving a file(for example, a picture, a video, a document, or audio) by the user, themobile phone 100 may further display a dialog box on the touchscreen150. The dialog box is used to prompt the user that the file is savedsuccessfully and whether to view the saved file. For example, a userinterface 1400 shown in FIG. 14A is a user interface for chatting with auser Jolin in WeChat. After detecting that the user successfully saves apicture 1401, the mobile phone 100 displays a dialog box 1402. Thedialog box 1402 includes an option “Yes” 1403 and an option “No” 1404,and the dialog box 1402 is used to prompt the user that the picture 1401is successfully saved and whether to view the saved picture 1401. If themobile phone 100 detects a touch operation on the option “yes” 1403, inresponse to the operation, the mobile phone 100 displays the first userinterface on the touchscreen 150. For example, a file structurecorresponding to WeChat is the file structure shown in FIG. 3. Forexample, the first user interface is a user interface 1410 shown in FIG.14B. In response to the touch operation on the option “yes” 1403, themobile phone 100 displays the user interface 1410 on the touchscreen150. The user interface 1410 includes a subfolder Picture control, asubfolder Game control, a subfolder Video control, a subfolder Documentcontrol, and a file control 1405. Because the file 1401 saved by theuser is a latest saved file, the file control 1405 is used to indicatethe file 1401 saved by the user. If the subfolder Picture control, thesubfolder Game control, the subfolder Video control, and the subfolderDocument control are arranged based on a time sequence of latest storageof a file in each subfolder, a position of the subfolder Picture controlin the user interface 1410 is before that of another subfolder control.If the mobile phone 100 detects a touch operation on the option “no”1404, in response to the operation, the mobile phone 100 closes thedialog box. The foregoing technical solution helps the user view alatest saved file.

The foregoing embodiments of this application may be applied toapplications installed in the mobile phone 100, and are not limited toWeChat. The foregoing uses WeChat as an example for description.According to the foregoing embodiments, the user searches for a relatedfile in a folder corresponding to an application, and a range in whichthe user searches for a file is greatly narrowed, to help improveefficiency of searching for a file by the user.

In addition, functions of the directory manager in the foregoingembodiments of this application may be further integrated into the filesystem manager, and the file system manager reports correspondinginformation to the settings at the application layer, so that thesettings generates and refreshes the first user interface.

It should be noted that WeChat is used as an example. In some otherembodiments of this application, a control 1501 may be further added toa setting screen of WeChat. If the mobile phone 100 detects a touchoperation on the control 1501, in response to the touch operation, themobile phone 100 displays the first user interface on the touchscreen150. For example, the first user interface is the user interface 1410shown in FIG. 14B. In this case, in response to the touch operation onthe control 1501, the mobile phone 100 displays the user interface 1410on the touchscreen 1501.

It should be understood that the first user interface may be a userinterface for managing WeChat in a native application (for example, thesettings) installed on the mobile phone 100, or may be a setting screenfor managing WeChat in WeChat. This is not limited in this application.

It should be noted that, in this embodiment of this application, ashortcut gesture operation (for example, three fingers swipe up or drawa circle) may be further set, to display the first user interface on thetouchscreen 150.

In addition, WeChat is used as an example. As shown in FIG. 16A, if themobile phone 100 in this embodiment of this application detects a touchand hold or heavy press operation on an icon of a first applicationprogram, in response to the operation, the mobile phone 100 displays ashortcut menu 1600 on the touchscreen 150, and the shortcut menu 1600includes application folder management 1601. In some other embodiments,the shortcut menu 1600 may further include controls such as my QR code,scan, collection and payment, and share “WeChat”. The user may alsocorrespondingly modify the controls included in the shortcut menu 1600based on a requirement of the user. When the mobile phone 100 detects atouch operation on the application folder management 1601, in responseto the touch operation, the mobile phone 100 displays the user interface1610 on the touchscreen 150. The user interface 1610 is a user interfaceof content details of a root folder corresponding to WeChat. In specificimplementation, the user interface 1610 may be a user interface innative application file management. For example, the root foldercorresponding to WeChat includes a subfolder Picture, a subfolder Game,a subfolder Video, and a subfolder Document. The user interface 1610includes a control 1602 used to indicate the subfolder Picture, acontrol 1603 used to indicate the subfolder Game, a control 1604 used toindicate the subfolder Video, and a control 1605 used to indicate thesubfolder Document.

WeChat is used as an example. In another embodiment, for WeChat, themobile phone 100 creates a root folder Weixin in a folder sdcard, andthe root folder Weixin includes a subfolder Download and a subfolderFile. Specifically, the subfolder Download is used to store a picture,audio, a video, and a document downloaded by the user during the use ofWeChat. The subfolder File is used to store a program file related toWeChat running. The mobile phone 100 may reclassify files based on typesof the files included in the subfolder Download and the subfolder File,to generate the first user interface. The first user interface may be auser interface 1800 shown in FIG. 18, and includes a control 1802, acontrol 1803, a control 1804, and a control 1805. In response to a touchoperation on the control 1802, the mobile phone 100 may display, on thetouchscreen 150, a user interface of a picture corresponding to WeChat.In response to a touch operation on the control 1803, the mobile phone100 may display, on the touchscreen 150, a user interface of audiocorresponding to WeChat. In response to a touch operation on the control1804, the mobile phone 100 may display, on the touchscreen 150, a userinterface of a video corresponding to WeChat. In response to a touchoperation on the control 1805, the mobile phone 100 may display, on thetouchscreen 150, a user interface of a file corresponding to WeChat. Inaddition, the user interface 1800 may further include a control 1801,and the control 1801 is configured to return to an upper-level settingmenu. The files are reclassified based on types of the files, tofacilitate the user to search for a file, and improve efficiency ofsearching for a file by the user.

The foregoing embodiments in this application may be used incombination, or may be used as an independent embodiment. In addition,the foregoing embodiments are described only by using WeChat as anexample. The embodiments of this application may also be applied toanother application.

An embodiment of this application further provides a method for copyinga file stored in the mobile phone 100 to another device (for example, apersonal computer). The following uses a scenario shown in FIG. 19 as anexample for detailed description.

As shown in FIG. 19, after a mobile phone 100 is connected to a computer1900, a file stored in the mobile phone 100 is copied to the computer1900. The mobile phone 100 and the computer 1900 may be connected in awired manner, for example, connected by using a USB data cable. Themobile phone 100 and the computer 1900 may also be connected in awireless manner, for example, through Wi-Fi or Bluetooth. A directconnection manner between the mobile phone 100 and the computer 1900 isnot limited in this embodiment of this application.

To facilitate copying the file stored in the mobile phone 100 to thecomputer 1900, in this embodiment of this application, after the mobilephone 100 is connected to the computer 1900, the mobile phone 100 maydisplay a file structure of the computer 1900 by using a touchscreen150.

An example in which the mobile phone 100 is an Android operating systemand the computer 1900 is a Windows operating system is used. Forexample, as shown in FIG. 20, the mobile phone 100 includes an Androidoperating system 2000 and a storage device. For a related description ofthe Android operating system 2000, refer to the related description ofthe Android operating system shown in FIG. 2 in the embodiments of thisapplication. Details are not described herein again. It should be notedthat the Android operating system 2000 shown in FIG. 20 may not includea directory manager. The storage device may be a memory 102 on themobile phone 100. To simplify an implementation, in some embodiments, acommunications node 2004 is preset in the storage device 102. Thecommunications node 2004 is configured to store related information ofan external device connected to the mobile phone 100 by using a USB (forexample, the external device is the computer 1900, and thecommunications node 2004 may be configured to store data converted basedon a file structure of the computer 1900).

A Windows operating system 2010 includes a mobile phone assistantapplication, a system layer, and a USB driver. The mobile phoneassistant application is used to process information about a mobilephone connected to the computer 1900. For example, the mobile phoneassistant application converts the file structure of the computer 1900into data in a preset format (such as a string). It should be understoodthat the mobile phone assistant application may be a system applicationor a preset application (for example, an application installed on thecomputer 1900 by the user based on a requirement of the user). Thesystem layer is configured to provide support for the mobile phoneassistant application, to implement functions that can be implemented bythe mobile phone assistant application. The USB driver is configured toidentify the external device connected to the computer 1900 by using theUSB, for example, the mobile phone 100.

In this embodiment of this application, after the mobile phone 100 isconnected to the computer 1900 by using the USB, the mobile phone 100 isin a USB slave mode, and the computer 1900 is in a USB sever mode.According to an existing USB protocol, the computer 1900 may read a filestructure of the mobile phone 100, and display the file structure of themobile phone 100 on the computer 1900. To enable the mobile phone 100 toobtain the file structure of the computer 1900 when the mobile phone 100is connected to the computer 1900 by using the USB, an embodiment ofthis application provides a data writing and data reading method.

Specifically, as shown in FIG. 21, the data writing method in thisembodiment of this application includes the following steps.

Step 2100: A USB driver 2013 of a computer 1900 detects that a deviceconnected to the computer 1900 by using a USB is a smartphone (forexample, a mobile phone 100).

Step 2101: The USB driver 2013 of the computer 1900 reports firstinformation to a system layer 2012, where the first information is usedto indicate the computer 1900 to connect to the mobile phone 100 byusing the USB.

Step 2102: The system layer 2012 of the computer 1900 starts a mobilephone assistant application 2011 based on the first information.

Step 2103: The mobile phone assistant application 2011 of the computer1900 obtains a file structure of the computer 1900, and converts thefile structure of the computer 1900 into data in a preset format (suchas a string). It should be noted that the preset format may becorrespondingly set based on a requirement of an actual situation. Thisis not limited herein.

Step 2104: The mobile phone assistant application 2011 of the computer1900 sends the data in the preset format to the USB driver 2013. Forexample, the mobile phone assistant application 2011 may send the datain the preset format to the USB driver 2013 by using the system layer2012, or may directly send the data to the USB driver 2013. This is notlimited herein.

Step 2105: The USB driver 2013 of the computer 1900 writes the data thatis converted in the step 2103 and that is in the preset format into acommunications node 2004 of the mobile phone 100.

Specifically, after the computer 1900 writes the converted data in thepreset format into the communications node 2004, the mobile phone 100may perform the data reading method in this embodiment of thisapplication, as shown in FIG. 22. The method includes the followingsteps.

Step 2200: After detecting that an external device connected by using aUSB is a computer 1900, a USB driver 2003 of a mobile phone 100 reportsan event that the external device connected by using the USB is thecomputer 1900 to a file system 2002. In some embodiments, a personalcomputer (personal computer, PC) mapping service may be further added tothe file system 2002. The USB driver 2003 reports, to the PC mappingservice, the event that the external device connected by using the USBis the computer 1900.

Step 2201: The file system 2002 obtains, in response to the event thatthe external device connected by using the USB is the computer 1900,data stored on a communications node 2004.

It should be noted that if the communications node 2004 does not storedata, the file system 2002 continues to obtain, after waiting for presetduration, the data stored on the communications node 2004. The presetduration may be correspondingly set based on a requirement. For example,the preset duration may be 5 s, 3 s, or the like. This is not limitedherein.

Step 2202: After obtaining the data stored on the communications node2004, the file system 2002 reports the data to file management 2001. Inaddition, to simplify an implementation, after obtaining the data storedon the communications node 2004, the file system 2002 deletes the datastored on the communications node 2004.

Step 2203: The file management 2001 performs format conversion on thedata stored on the communications node 2004, and generates, based on thedata obtained after the format conversion, a user interface including afile structure of the computer 1900.

For example, the file structure of the computer 1900 is shown in FIG.23. The computer 1900 includes a drive C and a drive D, the drive Cincludes a folder program, and the drive D includes a folder file 1, afolder file 2, and a file table. The user interface including the filestructure of the computer 1900 shown in FIG. 23 may be a user interface2400 shown in FIG. 24A. The user interface 2400 includes a control 2401and a control 2402, and the control 2401 indicates the folder program.For example, the mobile phone 100 displays the user interface 2400 onthe touchscreen 150. If detecting a touch operation on the control 2401,in response to the touch operation, the mobile phone 100 displays a userinterface 2410 on the touchscreen 150. The user interface 2410 includesa control 2411. The control 2411 indicates a content details screenincluded in the folder program.

The following uses a scenario shown in FIG. 25A and FIG. 25B as anexample to describe a process of copying a file from a mobile phone 100to a computer 1900 in this embodiment of this application. Specifically,the following steps are included.

Step 1: In response to a first operation of a user, the mobile phone 100displays a user interface 2500 on a touchscreen 150, where the userinterface 2500 includes a picture 2501 named “scenery photo”.

Step 2: In response to a copy operation performed by the user on thepicture 2501, the mobile phone 100 obtains path information“sdcard/Download” of the picture 2501.

Step 3: In response to the second operation of the user, the mobilephone 100 displays a user interface 2510 on the touchscreen 150. Theuser interface 2510 is configured to display content included in thedrive D.

Step 4: In response to a pasting operation performed by the user in theuser interface 2510, the mobile phone 100 converts the path informationof the picture 2501 into data in a preset format and stores the data onthe communications node 2004.

In some embodiments, specifically, the step 4 may be implemented in thefollowing manner.

An input device of the mobile phone 100 receives the pasting operationperformed by the user in the user interface 2510, converts the operationinto an input event, and reports the input event to the file management2001 at the application layer. After receiving the input event, the filemanagement 2001 obtains the path information “sdcard/Download” of thepicture 2501, converts the path information “sdcard/Download” into datain the preset format, and stores the data on the communications node2004.

Step 5: When detecting that the data stored in the mobile phone 100 isstored on the communications node 2004, the computer 1900 obtains thedata on the communications node 2004.

Step 6: The computer 1900 parses the obtained data on the communicationsnode 2004, to obtain the path information of the picture 2501, obtainsthe picture 2501 from the mobile phone 100 based on the path informationof the picture 2501, and stores the picture 2501 in the drive D.

In some embodiments, specifically, the step 5 and the step 6 may beimplemented in the following manner.

When detecting that the data stored in the mobile phone 100 is stored onthe communications node 2004, a USB driver 2013 of the computer 1900reads the data on the communications node 2004, and reports the readdata to a mobile phone assistant application 2011. The mobile phoneassistant application 2011 parses the obtained data on thecommunications node 2004, to obtain the path information of the picture2501. Then, the mobile phone assistant application 2011 obtains thepicture 2501 from the mobile phone 100 based on the path information ofthe picture 2501, and then saves the picture 2501 to the drive D.

It should be noted that, after obtaining the path information of thepicture 2501, the computer 1900 may indicate the mobile phone 100 todelete the data stored on the communications node 2004.

In addition, alternatively, when the mobile phone 100 is connected tothe computer 1900 by using the USB, data is copied from the computer1900 to the mobile phone 100.

The following uses the scenario shown in FIG. 25A and FIG. 25B as anexample for description. The user needs to copy a file 2502 named“table” to a folder Download of the mobile phone 100.

Specifically, the following steps are included.

Step 1: In response to a third operation of the user, the mobile phone100 displays a user interface 2510 on a touchscreen 150, where the userinterface 2510 includes the file 2502 named “table”.

Step 2: In response to a copying operation performed by the user on thefile 2502, the mobile phone 100 obtains path information “computer/driveD” of the file 2502.

Step 3: In response to a fourth operation of the user, the mobile phone100 displays a user interface 2500 on the touchscreen 150.

Step 4: In response to a pasting operation performed by the user in theuser interface 2500, the mobile phone 100 converts the path informationof the file 2502 into data in a preset format and stores the data on thecommunications node 2004.

In some embodiments, specifically, the step 4 may be implemented in thefollowing manner.

An input device of the mobile phone 100 receives the pasting operationperformed by the user in the user interface 2500, converts the operationinto an input event, and reports the input event to the file management2001 at the application layer. After receiving the input event, the filemanagement 2001 obtains the path information “computer/drive D” of thepicture 2502, converts the path information “computer/drive D” into datain the preset format, and stores the data on the communications node2004.

Step 5: When detecting that the data stored in the mobile phone 100 isstored on the communications node 2004, the computer 1900 obtains thedata on the communications node 2004.

Step 6: The computer 1900 parses the obtained data on the communicationsnode 2004, to obtain the path information of the file 2502, and sendsthe file 2502 to the folder Download of the mobile phone 100 based onthe path information of the file 2502.

In some embodiments, specifically, the step 5 and the step 6 may beimplemented in the following manner.

When detecting that the data stored in the mobile phone 100 is stored onthe communications node 2004, a USB driver 2013 of the computer 1900reads the data on the communications node 2004, and reports the readdata to a mobile phone assistant application 2011. The mobile phoneassistant application 2011 parses the obtained data on thecommunications node 2004, to obtain the path information of the file2502. Then, the mobile phone assistant application 2011 sends the file2502 to the folder Download of the mobile phone 100 based on the pathinformation of the file 2502.

In addition, for a process of copying data between the mobile phone 100and the computer 1900 by the user performing a cutting and pastingoperation on the mobile phone 100, refer to a process of copying databetween the mobile phone 100 and the computer 1900 by performing acopying and pasting operation. Details are not described herein again.

The foregoing description is merely based on a manner in which themobile phone 100 is connected to the computer 1900 by using the USB.When the mobile phone 100 is connected to the computer 1900 by usingBluetooth, Wi-Fi, or another manner, the file structure on the computer1900 may also be displayed on the mobile phone 100. An implementation issimilar to that of displaying the file structure on the computer 1900 bythe mobile phone 100 when the mobile phone 100 is connected to thecomputer 1900 by using the USB. Details are not described herein again.

It should be understood that the foregoing embodiments of thisapplication may be used in combination.

With reference to the foregoing embodiments and the accompanyingdrawings, an embodiment of this application provides a method forbrowsing an application folder. The method may be implemented in anelectronic device having a hardware structure shown in FIG. 1. Theelectronic device has a touchscreen.

Specifically, as shown in FIG. 26, an embodiment of this applicationprovides a method for browsing an application folder, including thefollowing steps.

Step 2600: An electronic device detects a first operation on atouchscreen.

For example, the first operation may be a touch operation on a firstcontrol, and the first control may be located in a user interface thatis in settings and that is used to manage a first application program,or may be located in a setting screen of the first application program.In addition, in some embodiments, the first control may be furtherlocated on a shortcut menu of the first application program. In responseto a touch and hold or heavy press operation on an icon of the firstapplication program, the electronic device may display the shortcut menuon the touchscreen. During specific implementation, the first controlmay be referred to as application folder management, folder management,or the like. This is not limited herein. For example, the firstapplication program is WeChat. The application folder management may belocated in the user interface 1100 shown in FIG. 11a -1, or may belocated on the shortcut menu 1300 shown in FIG. 13A, or may be locatedin the user interface 1500 shown in FIG. 15A. This is not limited inthis embodiment of this application.

Step 2601: In response to the first operation, the electronic devicedisplays a first user interface on the touchscreen, where the first userinterface is the setting screen of the first application program. Thesetting screen of the first application program includes a foldercontrol. The folder control is used to indicate a folder of the firstapplication program.

In some embodiments, the folder control may be a control of a rootfolder corresponding to the first application program, or may be acontrol of a subfolder, or may be a control of a reclassified folderbased on a type of a file included in the folder corresponding to thefirst application program.

An example in which the first application program is WeChat is used. Forexample, WeChat is corresponding to a root folder Weixin, and thesetting screen of the first application program may be the userinterface 400 shown in FIG. 4A. For another example, WeChat correspondsto a subfolder Picture, a subfolder Game, a subfolder Video, and asubfolder Document, and the setting screen of the first applicationprogram may also be the user interface 600 shown in FIG. 6a -1. Foranother example, reclassified folders corresponding to WeChat is afolder Picture, a folder Audio, a folder Video, and a folder Document.The setting screen of the first application program may be the userinterface 1800 shown in FIG. 18.

In addition, in this embodiment of this application, the folder controlmay be an icon of a folder, or may be a folder path, or may be a virtualbutton, or the like. This is not limited herein. WeChat is used as anexample. If the folder control is the virtual button, the setting screenof the first application program may be the user interface 500 shown inFIG. 5, or may be the user interface 620 shown in FIG. 6 b.

It should be noted that, in some embodiments, if the folder controlincludes N subfolder controls corresponding to the first applicationprogram, N is a natural number greater than 1, each of the N subfoldercontrols is used to indicate one subfolder corresponding to the firstapplication program, and each subfolder control indicates a differentsubfolder. For example, the N subfolder controls may be arranged in thefirst user interface in descending order of storage frequencies ofsubfolders respectively indicated by the N subfolder controls. Foranother example, the N subfolder controls may be arranged in the firstuser interface based on a time sequence of latest storage of a file inthe subfolders respectively indicated by the N subfolder controls.

In addition, the first user interface may further include a commonfolder control, and the common folder control is used to indicate asubfolder that is most frequently stored in the subfolders correspondingto the first application program. The electronic device may collect, byusing a file system manager at an interval of preset duration,statistics on a storage frequency of the subfolders corresponding to thefirst application program.

In some other embodiments, the first user interface may further includea file control. The file control is used to indicate a latest savedfile. The file may be a picture, a document, audio, a video, or thelike. This is not limited herein.

Step 2602: The electronic device detects a second operation on thefolder control

The second operation may be a touch operation on the folder control, ormay be a touch and hold operation on the folder control, or may be aheavy press operation on the folder control, or the like. This is notlimited herein.

Step 2603: In response to the second operation the electronic devicedisplays a second user interface on the touchscreen. The second userinterface is a content details screen of the folder corresponding to thefirst application program.

For ease of implementation, in some embodiments, the second userinterface may be a user interface in file management.

In addition, as shown in FIG. 27, another folder browsing methodaccording to an embodiment of this application includes the followingsteps.

Step 2700: An electronic device displays a home screen on a touchscreen,where the home screen includes an icon of a first application program.

Step 2701: The electronic device detects an operation on the icon of thefirst application program.

For example, the operation on the icon of the first application programmay be a double-tap operation, a touch and hold operation, a heavy pressoperation, or the like on the icon of the first application program.This is not limited herein.

Step 2702: In response to the operation on the icon of the firstapplication program, the electronic device displays a shortcut menu onthe touchscreen, where the shortcut menu includes a first control.

For example, the first application program is WeChat, and the shortcutmenu may be the shortcut menu 1300 shown in FIG. 13A. The first controlmay be referred to as application folder management, or may be referredto as folder management, or the like. This is not limited herein.

Step 2703: The electronic device detects a touch operation on the firstcontrol.

Step 2704: In response to the touch operation on the first control, theelectronic device displays, on the touchscreen, a content details screencorresponding to the first application program.

It should be noted that, in some embodiments, the content details screenis a user interface that is in file management and that is for contentdetails of a folder corresponding to the first application program.

In the embodiments provided in this application, the methods provided inthe embodiments of this application are described from a perspective inwhich the electronic device is used as an execution body. To implementfunctions in the methods provided in the embodiments of thisapplication, the electronic device may include a hardware structureand/or a software module, and implement the functions in a form of thehardware structure, the software module, or a combination of thehardware structure and the software module. Whether a function in theforegoing functions is performed by using the hardware structure, thesoftware module, or the combination of the hardware structure and thesoftware module depends on a specific application and a designconstraint condition of the technical solutions.

Based on a same concept, FIG. 28 shows an electronic device 2800according to this application. For example, the electronic device 2800includes at least one processor 2810, a memory 2820, and a touchscreen2830. The processor 2810 is coupled to the memory 2820 and thetouchscreen 2830. The coupling in this embodiment of this application isan indirect coupling or communication connection between apparatuses,units, or modules, and may be in an electrical, mechanical, or anotherform, and is used for information exchange between the apparatuses,units, or modules.

Specifically, the memory 2820 is configured to store a programinstruction.

The touchscreen 2830 is configured to display a user interface.

The processor 2810 is configured to invoke the program instructionstored in the memory 2820, so that the electronic device 2800 performsthe steps performed by the electronic device in the method for browsinga folder shown in FIG. 26 and/or FIG. 27, to improve efficiency ofsearching for a file by a user.

It should be understood that the electronic device 2800 may beconfigured to implement the method for browsing a folder shown in FIG.26 and/or FIG. 27 in this embodiment of this application. For relatedfeatures, refer to the foregoing descriptions. Details are not describedherein again.

A person skilled in the art may clearly understand that the embodimentsof this application may be implemented by hardware, firmware, or acombination thereof. When the present invention is implemented bysoftware, the foregoing functions may be stored in a computer-readablemedium or transmitted as one or more instructions or code in thecomputer-readable medium. The computer-readable medium includes acomputer storage medium and a communications medium, where thecommunications medium includes any medium that enables a computerprogram to be transmitted from one place to another. The storage mediummay be any available medium accessible to a computer. This is used as anexample but is not limited to: The computer-readable medium may includea RAM, a ROM, an electrically erasable programmable read-only memory(electrically erasable programmable read only memory, EEPROM), a compactdisc read-only memory (compact disc read-Only memory, CD-ROM) or anothercompact disc storage, a magnetic disk storage medium or another magneticstorage device, or any other medium that can be configured to carry orstore desired program code in a form of an instruction or a datastructure and that can be accessed by a computer. In addition, anyconnection may be appropriately defined as a computer-readable medium.For example, if software is transmitted from a website, a server oranother remote source by using a coaxial cable, an optical fiber/cable,a twisted pair, a digital subscriber line (digital subscriber line, DSL)or wireless technologies such as infrared ray, radio and microwave, thecoaxial cable, optical fiber/cable, twisted pair, DSL or wirelesstechnologies such as infrared ray, radio and microwave are included infixation of a medium to which they belong. A disk (disk) and disc (disc)used by the embodiments of this application includes a compact disc(compact disc, CD), a laser disc, an optical disc, a digital video disc(digital video disc, DVD), a floppy disk and a Blu-ray disc, where thedisk generally copies data by a magnetic means, and the disc copies dataoptically by a laser means. The foregoing combination should also beincluded in the protection scope of the computer-readable medium.

In summary, the foregoing descriptions are merely embodiments of thisapplication, but is not intended to limit the protection scope of thisapplication. Any modification, equivalent replacement, or improvementmade according to the disclosure of this application shall fall withinthe protection scope of this application.

1-8. (canceled)
 9. A method for browsing an application folder,implemented by an electronic device, wherein the method comprises:displaying a home screen on a touchscreen of the electronic device,wherein the home screen comprises an icon of a first application;detecting a touch and hold operation on the icon; displaying a shortcutmenu on the touchscreen in response to the touch and hold operation,wherein the shortcut menu comprises a first control; detecting a firsttouch operation on the first control; displaying a first user interfaceon the touchscreen in response to the first touch operation on the firstcontrol, wherein the first user interface comprises a first foldercontrol, a second folder control, and a first file control, wherein thefirst folder control indicates a first folder, wherein the second foldercontrol indicates a second folder, wherein the first file controlindicates a first file, wherein the first file is a latest file saved bythe electronic device for the first application, wherein the firstfolder comprises the first file, and wherein the second folder controlis located after the first folder control in the first user interface;detecting a first operation; displaying a second user interface on thetouchscreen in response to the first operation, wherein the second userinterface is of the first application and comprises a second file;detecting a second operation on the second file; saving the second fileto the second folder in response to the second operation; detecting athird operation on the touchscreen; refreshing the first user interfacebased on a name of the first application program and a save path of thesecond file and in response to the third operation; and displaying thefirst user interface on the touchscreen in response to the thirdoperation. 10-11. (canceled)
 12. An electronic device comprising: atouchscreen comprising a touch-sensitive surface and a display; aprocessor coupled to the touchscreen; a memory coupled to the processorand configured to store instructions that, when executed by theprocessor, cause the electronic device to be configured to: display ahome screen on the touchscreen, wherein the home screen comprises anicon of a first application; detect a touch and hold operation on theicon; and display a shortcut menu corresponding to the first applicationon the touchscreen in response to the touch and hold operation; detect afirst touch operation on the touchscreen; display a first user interfaceon the touchscreen in response to the first touch operation, wherein thefirst user interface is a setting screen of the first application,wherein the first user interface comprises a folder control, and whereinthe folder control indicates a folder of the first application; detect afirst operation on the folder control; and display a second userinterface on the touchscreen in response to the first operation, whereinthe second user interface is a content details screen of the foldercorresponding to the first application.
 13. The electronic device ofclaim 12, wherein the instructions further cause the electronic deviceto be configured to: display the home screen on the touchscreen beforethe first operation on the touchscreen is detected, wherein the homescreen comprises a setting icon; detect a second operation on thesetting icon; display a system setting screen on the touchscreen inresponse to the second operation; detect a third operation on the systemsetting screen; and display a third user interface on the touchscreen inresponse to the third operation on the system setting screen, whereinthe third user interface comprises a first control, and wherein thefirst touch operation is an operation on the first control.
 14. Theelectronic device of claim 12, wherein the shortcut menu comprises asecond control, and wherein the first touch operation is on the secondcontrol.
 15. The electronic device of claim 12, wherein the foldercontrol comprises a plurality of subfolder controls corresponding to thefirst application.
 16. The electronic device of claim 15, wherein thesubfolder controls are arranged in the first user interface indescending order of storage frequencies of subfolders respectivelyindicated by the subfolder controls.
 17. The electronic device of claim12, wherein the first user interface further comprises a file controlindicating a latest file that the electronic device saves for the firstapplication.
 18. The electronic device of claim 12, wherein theinstructions further cause the electronic device to be configured to:display a user interface of the first application on the touchscreen,wherein the user interface of the first application comprises a file;detect a fourth operation on the file; save the file in response to thefourth operation; display a dialog box on the touchscreen after the fileis successfully saved, wherein the dialog box prompts a user whether toview the file; detect a fifth operation from the user on the dialog box;and display the first user interface on the touchscreen in response tothe fifth operation.
 19. (canceled)
 20. An electronic device comprising:a touchscreen comprising a touch-sensitive surface and a display; aprocessor coupled to the touchscreen; a memory coupled to the processorand configured to store instructions that, when executed by theprocessor, cause the electronic device to be configured to: display ahome screen on the touchscreen, wherein the home screen comprises anicon of a first application, detect a touch and hold operation on theicon; display a shortcut menu on the touchscreen in response to thetouch and hold operation, wherein the shortcut menu comprises a firstcontrol; detect a first touch operation on the first control; display afirst user interface on the touchscreen in response to the first touchoperation on the first control, wherein the first user interface is asetting screen of the first application, wherein the first userinterface comprises a first folder control, a second folder control, anda first file control, wherein the first folder control indicates a firstfolder, wherein the second folder control indicates a second folder,wherein the first file control indicates a first file, wherein the firstfile is a latest file saved by the electronic device for the firstapplication, wherein the first folder comprises the first file, andwherein the second folder control is located after the first foldercontrol in the first user interface; detect a first operation; display asecond user interface on the touchscreen in response to the firstoperation, wherein the second user interface is of the firstapplication, and wherein the second user interface comprises a secondfile; detect a second operation on the second file; save the second fileto the second folder in response to the second operation; detect a thirdoperation on the touchscreen; refresh the first user interface based ona name of the first application and a save path of the second file andin response to the third operation; and display the first user interfaceon the touchscreen in response to the third operation. 21-24. (canceled)25. The method of claim 9, wherein the first user interface is a settingscreen of the first application.
 26. The method of claim 9, wherein thefirst folder and the second folder are comprised in a root foldercorresponding to the first application.
 27. The method of claim 9,wherein the first user interface comprises the first folder control, thesecond folder control, and a second file control.
 28. The method ofclaim 27, wherein the second file control indicates the second file. 29.The method of claim 9, wherein the second folder control is locatedbefore the first folder control in the first user interface.
 30. Theelectronic device of claim 15, wherein each of the subfolder controlsindicates one subfolder corresponding to the first application.
 31. Theelectronic device of claim 12, wherein each subfolder control indicatesa different subfolder.
 32. The electronic device of claim 20, whereinthe first folder and the second folder are comprised in a root foldercorresponding to the first application.
 33. The electronic device ofclaim 20, wherein the first user interface comprises the first foldercontrol, the second folder control, and a second file control.
 34. Theelectronic device of claim 33, wherein the second file control indicatesthe second file.
 35. The electronic device of claim 20, wherein thesecond folder control is located before the first folder control in thefirst user interface.